package com.example.factory_demo.factory.simplefactory;

import com.example.factory_demo.ICourse;
import com.example.factory_demo.JavaCourse;

public class SimpleFactoryTest {

    public static void main(String[] args) {
        //简单工厂模式的测试
        SimpleCourseFactory factory = new SimpleCourseFactory();
        ICourse iCourse = factory.createCourse(JavaCourse.class);
        iCourse.record();

    }

}
